package com.vinhvt.effiport.util;

import com.vinhvt.effiport.financial.ep.Organization;

public class Transform {
	public static Number toDecimal(boolean[] bits) {
		int result = 0;
		
		for(int i = 0; i < bits.length; i++) {
			result += (bits[i] ? 1 : 0) * Math.pow(2, bits.length - i - 1); 
		}
		
		return result;
	}	
	
	public void foo() {
		Organization org = new Organization("ABC");
		
	}
}
